package org.example.mytest.newControler;

import org.example.mytest.newMapper.EmployeesMapper;

import org.example.mytest.newMapper.OrdersMapper;
import org.example.mytest.newentity.employees;

import org.example.mytest.newentity.orders;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@CrossOrigin
@MapperScan("org.example.mytest.newMapper")
@RequestMapping("/orders")
public class OrdersControler
{
    @Autowired
    private OrdersMapper ordersMapper;
    @GetMapping("/query0")
    public List query2() {
        List<orders> list = ordersMapper.selectList(null);
        return list;
    }


}